package com.ghpt.service.impl;
import com.ghpt.mapper.GongReMapper;
import com.ghpt.pojo.GongRe;
import com.ghpt.service.GongReService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GongReServiceImpl implements GongReService {
    @Autowired
    private GongReMapper gongReMapper;

    @Override
    public GongRe findGongReById(Long id) {
        if (id != null) {
            return gongReMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(GongRe gongRe) {
        return gongReMapper.updateById(gongRe);//更新成功为1否则为0
    }
}
